package com.plat.tag.core.json;

import java.util.List;

import com.plat.tag.core.vo.SortDirection;

/**
 * easyui的datagrid向后台传递参数使用的model
 * @author
 */
public class DataGrid {

    private int page = 1;// 当前页

    private int rows = 10;// 每页显示记录数

    private String sort = null;// 排序字段名

    private SortDirection order = SortDirection.asc;// 按什么排序(asc,desc)

    private String field;//字段

    private String treefield;//树形数据表文本字段

    private List reaults;// 结果集

    private int total;//总记录数

    private String footer;//合计列

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getField() {
        return field;
    }

    public List getReaults() {
        return reaults;
    }

    public void setReaults(List reaults) {
        this.reaults = reaults;
    }

    public void setField(String field) {
        this.field = field;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public SortDirection getOrder() {
        return order;
    }

    public void setOrder(SortDirection order) {
        this.order = order;
    }

    public String getTreefield() {
        return treefield;
    }

    public void setTreefield(String treefield) {
        this.treefield = treefield;
    }

    public String getFooter() {
        return footer;
    }

    public void setFooter(String footer) {
        this.footer = footer;
    }

}
